package ru.poomsae.isap.Offline

import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.View
import android.widget.ImageButton
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import ru.poomsae.isap.Offline.SystemCutoff.SystemOfCutOFF
import ru.poomsae.isap.Online.Freestyle.Freestyle
import ru.poomsae.isap.R


class MenuActivity : AppCompatActivity() {

    @RequiresApi(Build.VERSION_CODES.JELLY_BEAN)
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val decorView = window.decorView
        val uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN
        decorView.systemUiVisibility = uiOptions
        getSupportActionBar()?.hide()
        setContentView(R.layout.menu_offline)

        val img_free = findViewById(R.id.img_free) as ImageButton
        val img_rec = findViewById(R.id.img_rec) as ImageButton

        img_free.setOnClickListener {
            val intent = Intent (this, Freestyle::class.java)
            startActivity(intent)
        }

        img_rec.setOnClickListener {
            val intent = Intent (this, SystemOfCutOFF::class.java)
            startActivity(intent)
        }
    }
}